package com.itheima.service;

import com.itheima.pojo.Intervention;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface InterventionService {

    void add(@RequestBody Intervention intervention, Integer[] sportIds, Integer[] foodIds);

    Intervention findById(Integer id);

    List<Integer> findsportsIdByOrderId(Integer id);

    List<Integer> findfoodIdsByOrderId(Integer id);

    Intervention findByOrderId(Integer id);

    void edit(Intervention intervention, Integer[] sportsIds, Integer[] foodIds);
}
